Skip to content

Fix bounds issue with integer field in application command #7458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nmarks413
Copy link

The bound for integers here was incorrectly specified as -2^53 to 2^53, ignoring the representation for integers in JS with minimum (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_SAFE_INTEGER) and maximum (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)

@nmarks413 nmarks413 requested a review from a team as a code owner April 7, 2025 17:14
@nmarks413 nmarks413 requested review from anthonydiscord and removed request for a team April 7, 2025 17:14
@advaith1
Copy link
Contributor

advaith1 commented Apr 7, 2025

does this also apply to the NUMBER type below?

@nmarks413
Copy link
Author

It is unclear as the fix I submitted is only for client side validation, and the NUMBER type is not client side checked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants